﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jim.K3Cloud;

/// <summary>
/// 获取数据中心列表
/// </summary>
[Sdk("Kingdee.BOS.WebApi.ServicesStub.MCService.GetDataCenterList", "获取数据中心列表")]
public class K3CloudGetDataCenterListRequest : ISdkRequest<K3CloudGetDataCenterListResponse>
{
    public void Validate()
    {
    }
}


public class K3CloudGetDataCenterListResponse : SdkResponse<List<K3CloudGetDataCenterListData>>
{
}

public class K3CloudGetDataCenterListData
{
    public string Id { get; set; }
    public string Number { get; set; }
    [JsonConverter(typeof(LocaleValueConverter))]
    public string Name { get; set; }
    public int DBType { get; set; }
    public string AcctType { get; set; }
    public string IsNeedValicationCode { get; set; }
    public List<AuthenticationMethodsItem> AuthenticationMethods { get; set; }
    /// <summary>
    /// 允许计划任务
    /// </summary>
    public string RunTask { get; set; }
    /// <summary>
    /// 版本
    /// </summary>
    public string Version { get; set; }
    /// <summary>
    /// 租客ID
    /// </summary>
    public string TenantId { get; set; }
    /// <summary>
    /// 网站
    /// </summary>
    public List<SitesItem> Sites { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string IsNotDefaultAdmin { get; set; }

}
public class AuthenticationMethodsItem
{
    public int AuthenticationMethodType { get; set; }
    /// <summary>
    /// 命名用户身份
    /// </summary>
    public string Name { get; set; }

    //[JsonConverter(typeof(LocaleValueConverter))]
    //public string MultiLangName { get; set; }
    //public LocaleValue MultiLangName { get; set; }
}

public class SitesItem
{
    /// <summary>
    /// 
    /// </summary>
    public string Id { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string DisplayName { get; set; }
}
